<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">

<head>
    <div data-th-replace="layout/head-top"></div>
    <link rel="stylesheet" type="text/css" th:href="@{{path}/common/v3/summernote/summernote-bs3.css?v={v}(path=${staticPath},v=${v})}"/>
</head>
<body>
    <form id="helpCenterForm">
        <input type="hidden" name="id" th:value="${sysHelpCenter['id']}"/>
        <input type="hidden" name="parentId" th:value="${sysHelpCenter['parentId']}"/>
        <div class="col-sm-12">
           <div class="ibox-content clearfix pt10">
               <div class="form-horizontal">
                   <form id="groupForm">
                       <div class="form-group">
                           <label class="col-sm-2 control-label text-right">
                               <i class="c-red">*</i> 帮助文档名
                           </label>
                           <div class="col-sm-10">
                               <input type="text" class="form-control" th:value="${sysHelpCenter['helpName']}" name="helpName"/>
                               <span class="help-block m-b-none c-999"> 帮助文档名限30个字符以内</span>
                           </div>
                       </div>
                       <div class="hr-line-dashed"></div>
                       <div class="form-group">
                           <label class="col-sm-2 control-label text-right"> 显示位置</label>
                           <div class="col-sm-10">
                               <select name="showClients" id="showClients" class="form-control mb10"  data-placeholder="显示位置">
                                   <option th:selected="${sysHelpCenter['showClients']}==1" value="1">后台</option>
                                   <option th:selected="${sysHelpCenter['showClients']}==2" value="2">前台</option>
                               </select>
                               <span class="help-block m-b-none c-999">帮助文档显示位置。当文档类型为关联权限时，此处只能选择后台。</span>
                           </div>
                       </div>
                       <div class="hr-line-dashed"></div>
                       <div class="form-group frontBottom" th:style="${sysHelpCenter['showClients']}==1 or ${sysHelpCenter['showClients']}==null?'display: none':''">
                           <label class="col-sm-2 control-label text-right">是否底部显示</label>
                           <div class="col-sm-10">
                               <select name="frontBottom" class="form-control mb10  validate-data" data-placeholder="底部显示">
                                   <option th:selected="${sysHelpCenter['frontBottom']}==1" value="1">是</option>
                                   <option th:selected="${sysHelpCenter['frontBottom']}==2" value="2" selected>否</option>
                               </select>
                               <span class="help-block m-b-none c-999">前台帮助文档是否在页面的底部显示</span>
                           </div>
                       </div>
                       <div class="hr-line-dashed frontBottom" th:style="${sysHelpCenter['showClients']}==1 or ${sysHelpCenter['showClients']}==null?'display: none':''"></div>
                       <div class="form-group">
                           <label class="col-sm-2 control-label text-right">帮助文档状态</label>
                           <div class="col-sm-10">
                               <select name="status" class="form-control mb10">
                                   <option th:selected="${sysHelpCenter['status']}==1" value="1" selected>显示</option>
                                   <option th:selected="${sysHelpCenter['status']}==2" value="2">隐藏</option>
                               </select>
                               <span class="help-block m-b-none c-999">帮助文档默认是显示状态</span>
                           </div>
                       </div>
                       <div class="hr-line-dashed"></div>
                       <div class="form-group">
                           <label class="col-sm-2 control-label text-right">帮助文档内容</label>
                           <div class="col-sm-10">
                               <textarea name="context" id="helpContext" class="form-control" th:text="${sysHelpCenter['context']}"></textarea>
                               <span class="help-block m-b-none c-999">帮助文档的具体内容</span>
                           </div>
                       </div>
                   </form>
               </div>
           </div>
        </div>
    </form>
    <div data-th-replace="layout/head-footer"></div>
    <script type="text/javascript" th:src="@{{path}/common/summernote/summernote.min.js?v={v}(path=${staticPath},v=${v})}"></script>
    <script type="text/javascript" th:src="@{{path}/admin/business/manage/help/save_help_center.js?v={v}(path=${staticPath},v=${v})}"></script>
    <script>
        $(function(){
            //初始化下拉框的搜索输入,如果不重新初始化下拉框样式不加载
            initSelectSearch();
        });
    </script>
</body>
</html>